package com.HuiShou.mapper;

import java.util.List;
import com.HuiShou.domain.RecycleOrder;
import com.HuiShou.domain.UserPointsAccount;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 回收订单Mapper接口
 * 
 * @author lyz
 * @date 2025-02-26
 */
public interface RecycleOrderMapper extends BaseMapper<RecycleOrder>
{

    @Select("SELECT * FROM recycle_order WHERE order_id = #{orderId}")
    RecycleOrder selectByIdD(String orderId);

    /**
     * 查询回收订单
     * 
     * @param orderId 回收订单主键
     * @return 回收订单
     */
    public RecycleOrder selectRecycleOrderByOrderId(String orderId);

    /**
     * 查询回收订单列表
     * 
     * @param recycleOrder 回收订单
     * @return 回收订单集合
     */
    public List<RecycleOrder> selectRecycleOrderList(RecycleOrder recycleOrder);

    /**
     * 新增回收订单
     * 
     * @param recycleOrder 回收订单
     * @return 结果
     */
    public int insertRecycleOrder(RecycleOrder recycleOrder);

    /**
     * 修改回收订单
     * 
     * @param recycleOrder 回收订单
     * @return 结果
     */
    public int updateRecycleOrder(RecycleOrder recycleOrder);

    /**
     * 删除回收订单
     * 
     * @param orderId 回收订单主键
     * @return 结果
     */
    public int deleteRecycleOrderByOrderId(String orderId);

    /**
     * 批量删除回收订单
     * 
     * @param orderIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRecycleOrderByOrderIds(String[] orderIds);


}
